package com.baige.api.app.sdk.request;

import com.baige.common.utils.RegularUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * @author wulg
 * @date 2018/12/12.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UserPhoneLoginRequest", description = "用户手机号登录请求对象")
public class UserPhoneLoginRequest
{
    @ApiModelProperty(value = "手机号码")
    @Pattern(regexp = RegularUtil.EXACT_MOBILE_PATTERN, message = "手机号码格式错误")
    private String phone;
    @ApiModelProperty(value = "验证码")
    @NotEmpty(message = "验证码不能为空")
    private String smsCode;
}
